import request from '@/utils/request'


export function getInventoryList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/fund/admin/inventory/getList',
    method: 'post',
    data: query
  })
}   

export function saveInventory(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/fund/admin/inventory/save',
    method: 'post',
    data: query
  })
}   


export function copyInventory(query) {
  return request({
    url: '/fund/admin/inventory/copy',
    method: 'post',
    data: query
  })
}   
export function getInventoryDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/fund/admin/inventory/getDetail',
    method: 'post',
    data: query
  })
}


export function removeInventory(query) {
  return request({
    url: '/fund/admin/inventory/remove',
    method: 'post',
    data: query
  })
}   